When finding the common prefix, assert that we have the correct folder loaded
authorFederico Mena Quintero <federico@gnu.org>
Thu, 13 Mar 2008 00:35:54 +0000 (00:35 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Thu, 13 Mar 2008 00:35:54 +0000 (00:35 +0000)
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19821

gtk/gtkfilechooserentry.c

index 4cc5853419689328e244a243b801b0f1201ed654..6c1e9c7a7d8ffb794ef79748517a327c7e4cbe78 100644 (file)
@@ -462,7 +462,9 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry,
   if (!parsed)
     return;
 
-  /* FIXME: assert that the current folder path is the same as the parsed path? */
+  g_assert (parsed_folder_path != NULL
+           && chooser_entry->current_folder_path != NULL
+           && gtk_file_path_compare (parsed_folder_path, chooser_entry->current_folder_path) == 0);
 
   valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (chooser_entry->completion_store), &iter);